package com.cn.ccp.bean;

import java.util.Date;

import com.cn.ccp.util.CCPContants;
import com.cn.ccp.util.Contants;

/**
 * 课程bean
 * @author Administrator
 *
 */
public class CourseBean {

	private String id ;
	private String specialty_id ;
	private String specialty_name ;
	
	private String course_name ;
	private String descripte ;
	private String keys ;
	private String image = "book-default.png" ;
	private String imageName ;
	private String status = "1" ;//1--新建 2--待审核 3--审核未通过 4--发布（审核通过就是发布） 5--下架（对于评分比较低的课程，进行下架处理） -1----逻辑删除后为-1
	private String status_name ;
	
	private String has_test = "0" ; 
	private String has_test_name ;
	private String language_type ;//
	private String languageTypeName ;
	
	private String total_score = "0" ;
	
	private String prices = "0";
	
	private String start_level = "0" ;
	private String is_high_quality = "0" ;
	private String is_high_quality_name  ;
	
	private String create_time = CCPContants.sdf3.format(new Date());//发布时间
	private String online_begin_time = "";
	private String online_end_time= "";
	private String credit = "0";
	private String teacherId;//老师id
	private String teacherName;//老师姓名
	private int marks;//已评价学生总数
	private int studyUsers;//正在学习的学生总数
	private String teacherDes;//老师简介
	
	private String isHaveCourseContent ;//是否有课程内容
	
	private boolean showStatus = true ;//当审核未通过时，进行跳转操作
	private boolean editStatus =  false ;
	private boolean linkDelete = false ;
	private boolean viewMsg = false ;
	private boolean linkEdit = false ;
	private boolean hasSelected;//是否已经选择了该门课程
	
	private boolean hasTraining = false ;//是否有考试
	
	
	private String trainingTotalScore ;//该课程所对应的试题总分数
	private boolean hasSurvey = false ;//是否显示调查编辑链接
	
	private int file_path_id ;
	
	private String courseResourse ;//课程来源
	
	private String completed = "0" ;//是否完整
	
	private String completedName ;//是否完整名称
	private boolean selected;//选择
	
	public int getFile_path_id() {
		return file_path_id;
	}

	public void setFile_path_id(int file_path_id) {
		this.file_path_id = file_path_id;
	}

	private String teaching_group_id ;
	
	private String teaching_group_name ;
	
	// 该课程是否有章节
	private boolean haveChapter = true ;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSpecialty_id() {
		return specialty_id;
	}

	public void setSpecialty_id(String specialty_id) {
		this.specialty_id = specialty_id;
	}

	public String getSpecialty_name() {
		return specialty_name;
	}

	public void setSpecialty_name(String specialty_name) {
		this.specialty_name = specialty_name;
	}

	public String getCourse_name() {
		return course_name;
	}

	public void setCourse_name(String course_name) {
		this.course_name = course_name;
	}

	public String getDescripte() {
		return descripte;
	}

	public void setDescripte(String descripte) {
		this.descripte = descripte;
	}

	public String getKeys() {
		return keys;
	}

	public void setKeys(String keys) {
		this.keys = keys;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus_name() {
		return status_name;
	}

	public void setStatus_name(String status_name) {
		this.status_name = status_name;
	}

	public String getHas_test() {
		return has_test;
	}

	public void setHas_test(String has_test) {
		this.has_test = has_test;
	}

	public String getHas_test_name() {
		return has_test_name;
	}

	public void setHas_test_name(String has_test_name) {
		this.has_test_name = has_test_name;
	}

	public String getTotal_score() {
		return total_score;
	}

	public void setTotal_score(String total_score) {
		this.total_score = total_score;
	}

	public String getPrices() {
		return prices;
	}

	public void setPrices(String prices) {
		this.prices = prices;
	}

	public String getStart_level() {
		if(start_level != null && start_level.indexOf(".") >= 0 )
			return 	Contants.dFormat.format(Double.parseDouble(start_level)).toString();
		else
			return start_level;
	}

	public void setStart_level(String start_level) {
		this.start_level = start_level;
	}

	public String getIs_high_quality() {
		return is_high_quality;
	}

	public void setIs_high_quality(String is_high_quality) {
		this.is_high_quality = is_high_quality;
	}

	public String getIs_high_quality_name() {
		return is_high_quality_name;
	}

	public void setIs_high_quality_name(String is_high_quality_name) {
		this.is_high_quality_name = is_high_quality_name;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	public String getOnline_begin_time() {
		return online_begin_time;
	}

	public void setOnline_begin_time(String online_begin_time) {
		this.online_begin_time = online_begin_time;
	}

	public String getOnline_end_time() {
		return online_end_time;
	}

	public void setOnline_end_time(String online_end_time) {
		this.online_end_time = online_end_time;
	}

	public String getCredit() {
		return credit;
	}

	public void setCredit(String credit) {
		this.credit = credit;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public int getMarks() {
		return marks;
	}

	public void setMarks(int marks) {
		this.marks = marks;
	}

	public int getStudyUsers() {
		return studyUsers;
	}

	public void setStudyUsers(int studyUsers) {
		this.studyUsers = studyUsers;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}


	public String getTeacherDes() {
		return teacherDes;
	}

	public void setTeacherDes(String teacherDes) {
		this.teacherDes = teacherDes;
	}

	public String getIsHaveCourseContent() {
		return isHaveCourseContent;
	}

	public void setIsHaveCourseContent(String isHaveCourseContent) {
		this.isHaveCourseContent = isHaveCourseContent;
	}

	public boolean isShowStatus() {
		return showStatus;
	}

	public void setShowStatus(boolean showStatus) {
		this.showStatus = showStatus;
	}

	public boolean isLinkDelete() {
		return linkDelete;
	}

	public void setLinkDelete(boolean linkDelete) {
		this.linkDelete = linkDelete;
	}


	public boolean isViewMsg() {
		return viewMsg;
	}

	public void setViewMsg(boolean viewMsg) {
		this.viewMsg = viewMsg;
	}

	public boolean isEditStatus() {
		return editStatus;
	}

	public void setEditStatus(boolean editStatus) {
		this.editStatus = editStatus;
	}

	public boolean isLinkEdit() {
		return linkEdit;
	}

	public void setLinkEdit(boolean linkEdit) {
		this.linkEdit = linkEdit;
	}
	

	public boolean isHasSelected() {
		return hasSelected;
	}

	public void setHasSelected(boolean hasSelected) {
		this.hasSelected = hasSelected;
	}

	public String getTrainingTotalScore() {
		return trainingTotalScore;
	}

	public void setTrainingTotalScore(String trainingTotalScore) {
		this.trainingTotalScore = trainingTotalScore;
	}

	public boolean isHaveChapter() {
		return haveChapter;
	}

	public void setHaveChapter(boolean haveChapter) {
		this.haveChapter = haveChapter;
	}

	public String getTeaching_group_id() {
		return teaching_group_id;
	}

	public void setTeaching_group_id(String teaching_group_id) {
		this.teaching_group_id = teaching_group_id;
	}

	public String getTeaching_group_name() {
		return teaching_group_name;
	}

	public void setTeaching_group_name(String teaching_group_name) {
		this.teaching_group_name = teaching_group_name;
	}

	public boolean isHasTraining() {
		return hasTraining;
	}

	public void setHasTraining(boolean hasTraining) {
		this.hasTraining = hasTraining;
	}

	public boolean isHasSurvey() {
		return hasSurvey;
	}

	public void setHasSurvey(boolean hasSurvey) {
		this.hasSurvey = hasSurvey;
	}

	public String getLanguage_type() {
		return language_type;
	}

	public void setLanguage_type(String language_type) {
		this.language_type = language_type;
	}

	public String getCourseResourse() {
		return courseResourse;
	}

	public void setCourseResourse(String courseResourse) {
		this.courseResourse = courseResourse;
	}

	public String getCompleted() {
		return completed;
	}

	public void setCompleted(String completed) {
		this.completed = completed;
	}

	public String getCompletedName() {
		return completedName;
	}

	public void setCompletedName(String completedName) {
		this.completedName = completedName;
	}

	public String getLanguageTypeName() {
		return languageTypeName;
	}

	public void setLanguageTypeName(String languageTypeName) {
		this.languageTypeName = languageTypeName;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	@Override
	public String toString() {
		return "CourseBean [id=" + id + ", specialty_id=" + specialty_id
				+ ", specialty_name=" + specialty_name + ", course_name="
				+ course_name + ", descripte=" + descripte + ", keys=" + keys
				+ ", image=" + image + ", status=" + status + ", status_name="
				+ status_name + ", has_test=" + has_test + ", has_test_name="
				+ has_test_name + ", total_score=" + total_score + ", prices="
				+ prices + ", start_level=" + start_level
				+ ", is_high_quality=" + is_high_quality
				+ ", is_high_quality_name=" + is_high_quality_name
				+ ", create_time=" + create_time + ", online_begin_time="
				+ online_begin_time + ", online_end_time=" + online_end_time
				+ ", credit=" + credit + ", teacherId=" + teacherId
				+ ", teacherName=" + teacherName + ", marks=" + marks
				+ ", studyUsers=" + studyUsers + "]";
	}
	
	
}
